﻿using Architecture.Domain;
using Architecture.Domain.Dto.RoleDto;
using MediatR;

namespace Architecture.API.Application.Command.RoleCommand
{
    /// <summary>
    /// 角色查询命令
    /// </summary>
    public class RoleSerchCommand :IRequest<PagingRoleDto<Role>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 角色名
        /// </summary>
        public string? RoleName { get; set; }
    }
}
